package de.bytecake.snoobud.bootstrap.config;

import de.bytecake.snoobud.bootstrap.logging.ApplicationLogger;
import org.apache.log4j.*;
import java.io.File;

/**
 * Snoobud Configuration Class
 * @author Dirk
 */
public class Config {
    
    File configFile = new File(System.getProperty("user.dir")+"/config.xml");
    Logger logger = ApplicationLogger.getAppLogger();
    StandardConfig stConf = null;
    
    public Config(){
        //Check for config.xml file
        if(!configFile.exists()){
            //config file not available? -> create standard config to start application
            logger.error("config.xml not found - Trying to create a new standard config.xml");
            stConf = new StandardConfig();
        }
        
    }
    
}
